2D spatial audio listener configuration.
interface SpatialAudioListenerOptions {
position: Vector2;
rotation: number;
yAxis: SpatialYAxisDirection;
}
Used by the SpatialAudioListener constructor. Every field is optional.
position: Vector2 - Initial position. Default { x: 0, y: 0 }.rotation: number - Optional facing direction in radians, clockwise. 0 means facing up on the screen, so left and right map to the x-axis. Games without a rotating listener can ignore this. Default 0.yAxis: SpatialYAxisDirection - Direction of the y-axis on screen. Set by the renderer. Default "down".